package io.github.wslxm.springbootplus2.manage.sys.model.query;

import io.github.wslxm.springbootplus2.core.base.model.BaseQuery;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

/**
 *   菜单
 *
 * @author 王松
 * @WX-QQ 1720696548
 * @date 2019/11/14 20:49
 */
@Data
@ToString(callSuper = true)
@Schema(name = "SysMenuQuery", description = "菜单")
public class SysMenuQuery extends BaseQuery {

    @Schema(title = "父id--非必传, 没有获取所有, 传递了只查询指定层级的下一级数据")
    private String pid;

    @Schema(title = "禁用--非必传,（0-否，1-是)")
    private Integer disable;

    @Schema(title = "查询级别 (1-目录 2-菜单 3-页面)")
    private Integer root;

    @Schema(description = "菜单名" )
    @Length(min=0, max=32,message = "sys.menu.name.Length")
    private String name;
}
